package edu.wong.pro.action;

import java.util.jar.Attributes.Name;

import com.opensymphony.xwork2.ActionSupport;

import edu.wong.pro.iservice.ILogin;

public class LoginAction extends ActionSupport{
	private String name;
	private String pwd;
	private ILogin iLogin;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public ILogin getiLogin() {
		return iLogin;
	}
	public void setiLogin(ILogin iLogin) {
		this.iLogin = iLogin;
	}
	public LoginAction(){}
	public String execute(){
		System.out.println(name+pwd);
		return iLogin.doLogin(name, pwd);
	}
}
